Component({
  options: {
    styleIsolation: 'apply-shared'
  },
  properties: {
    statusBarHeight: {
      type: Number,
      value: 0
    },
    navBarHeight:{
      type:Number,
      value: 0
    },
    title:{
      type:String,
      value: ''
    },
    showModal: {
      type: Boolean,
      value: false
    },
    isLoggedIn: {
      type: Boolean,
      value: false
    },
    phone:{
      type:String,
      value: ''
    }
  },
  methods: {
    showMenu: function() {
      // 切换 showModal 的值
      console.log(this.data.isLoggedIn)
      this.setData({
        showModal: !this.data.showModal
      });
    },
    login() {
      wx.navigateTo({
        url: '/pages/login/login'
      });
    },
  }
})
